package com.jams.goodox.entity;

import com.google.gson.annotations.SerializedName;
import com.jams.goodox.net.BaseEntity;

/**
 * Created by Administrator on 2017/9/23.
 */

public class BaokuanEntity extends BaseEntity{
    private String type;
    @SerializedName("title")
    private String productName;
    @SerializedName("sales")
    private String productNumber;
    @SerializedName("preview")
    private String imgUrl;
    private String price;
    @SerializedName("inventory")
    private String kucun;
    private String time;
    String id;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BaokuanEntity(String productName, String productNumber){
        this.productName=productName;
        this.productNumber=productNumber;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }

    public String getImgUrl() {
        return imgUrl+"";
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getPrice() {
        return String.format("¥%s",price);
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getKucun() {
        return  String.format("库存%s",kucun);
    }

    public void setKucun(String kucun) {
        this.kucun = kucun;
    }
}
